package com.iotp.service.knowledge_type;

import com.iotp.entity.base.ResponseResult;
import com.iotp.entity.knowledge_type.KnowledgeType;

/**
 * 知识分类管理
 */
public interface KnowledgeTypeService {
    /**
     * 添加根节点
     * @param knowledgeType
     * @return
     */
    public ResponseResult addRoot(KnowledgeType knowledgeType);

    /**
     * 获取全部节点
     * @param type
     * @return
     */
    public ResponseResult getAllNode(int type);
    /**
     * 节点操作
     * @param type
     * @param knowledgeType
     * @return
     */
    public ResponseResult operationNode(int type, KnowledgeType knowledgeType);
}
